package com.gui.snake;

import javax.swing.*;
import java.net.URL;

public class Data {
    private static final URL headerURL = Data.class.getResource("/static/header.png");
    public static ImageIcon header;

    static {
        assert headerURL != null;
        header = new ImageIcon(headerURL);
    }

    private static final URL upURL = Data.class.getResource("/static/up.png");
    private static final URL downURL = Data.class.getResource("/static/down.png");
    private static final URL leftURL = Data.class.getResource("/static/left.png");
    private static final URL rightURL = Data.class.getResource("/static/right.png");
    public static ImageIcon up;

    static {
        assert upURL != null;
        up = new ImageIcon(upURL);
    }

    public static ImageIcon down;

    static {
        assert downURL != null;
        down = new ImageIcon(downURL);
    }

    public static ImageIcon left;

    static {
        assert leftURL != null;
        left = new ImageIcon(leftURL);
    }

    public static ImageIcon right;

    static {
        assert rightURL != null;
        right = new ImageIcon(rightURL);
    }

    private static final URL bodyURL = Data.class.getResource("/static/body.png");
    public static ImageIcon body;

    static {
        assert bodyURL != null;
        body = new ImageIcon(bodyURL);
    }

    private static final URL foodURL = Data.class.getResource("/static/food.png");
    public static ImageIcon food;

    static {
        assert foodURL != null;
        food = new ImageIcon(foodURL);
    }
}
